package com.yike.user.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 店铺表
 *
 * @author Sakura
 * @since 2024-08-23
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "店铺信息")
public class ShopVo implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("店铺编号，修改必传")
    private String shopNo;

    @ApiModelProperty("类型ID")
    private Long typeId;

    @ApiModelProperty("店铺类型")
    private String type;

    @ApiModelProperty("商户id")
    private Long merchantId;

    @ApiModelProperty("商户编号")
    private String merchantNo;

    @ApiModelProperty("商户名称")
    private String merchantName;

    @ApiModelProperty("代理商id")
    private Long agentId;

    @ApiModelProperty("代理商编号")
    private String agentNo;

    @ApiModelProperty("代理商名称")
    private String agentName;

    @ApiModelProperty("店铺名称")
    private String shopName;

    @ApiModelProperty("logo")
    private String logoUrl;

    @ApiModelProperty("联系人")
    private String contact;

    @ApiModelProperty("联系电话")
    private String mobile;

    @ApiModelProperty("省code")
    private String provCode;

    @ApiModelProperty("省名称")
    private String provName;

    @ApiModelProperty("市code")
    private String cityCode;

    @ApiModelProperty("市名称")
    private String cityName;

    @ApiModelProperty("区code")
    private String distCode;

    @ApiModelProperty("区名称")
    private String distName;

    @ApiModelProperty("详细地址")
    private String address;

    @ApiModelProperty("经度")
    private BigDecimal longitude;

    @ApiModelProperty("维度")
    private BigDecimal latitude;

    @ApiModelProperty("定位地址")
    private String locationAddress;

    @ApiModelProperty("调价状态：1开启 0关闭")
    private Boolean adjustPriceFlag;

    @ApiModelProperty("调价百分比（1-100）")
    private Integer adjustPriceRate;

    @ApiModelProperty("云助守状态：1开启 0关闭")
    private Boolean cloudGarrisonFlag;

    @ApiModelProperty("云助手code（每次开启都会生成一个新的code）")
    private String cloudGarrisonCode;

    @ApiModelProperty("距离 单位米")
    private Integer distance;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("申请绑定ID")
    private Integer applyId;

    @ApiModelProperty("申请类型:1店铺绑定代理商 2店铺绑定商家")
    private Integer applyType;

    @ApiModelProperty("是否可审：1可审核 0不可审核")
    private Integer checkFlag;

    @ApiModelProperty("申请状态：0待通过 1通过 2拒绝")
    private Integer applyStatus;

    @ApiModelProperty("销售额")
    private BigDecimal totalAmount = BigDecimal.ZERO;

    @ApiModelProperty("实收")
    private BigDecimal actualAmount = BigDecimal.ZERO;

    @ApiModelProperty("分佣")
    private BigDecimal totalCommission = BigDecimal.ZERO;

    @ApiModelProperty("店铺摄像头信息")
    private List<String> cameras;

}
